﻿using Hetang.Models.Helper;
using Hetang.Models.Interface;
using Hetang.Models.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Hetang.Controllers
{
    public class LogoutController : Controller
    {
        //
        // GET: /Logout/

        public ActionResult Index()
        {
            ILoginRepository _lr = new LoginRepository();
            _lr.Logout();

            System.Web.Security.FormsAuthentication.SignOut();

            return View();
        }
    }
}
